#ifndef __LED_PLAT_H__
#define __LED_PLAT_H__

struct led_plat_data
{
	//哪个灯
	char * led_name;
	//设备节点
	char * dev_name;
	//次设备号
	unsigned int minor;

	//RCC
	unsigned int RCC_PLL4CR_SET;//(1 << 0)
	unsigned int RCC_PLL4CR_TEST;//(1 << 1)
	unsigned int RCC_MP_AHB4ENSETR_SET;//(1 << 4) | (1 << 5)
	//GPIOZ
	unsigned int GPIOZ_MODER_RESET;//~((0x03 << 10) | (0x03 << 12) | (0x03 << 14))
	unsigned int GPIOZ_MODER_SET;//(0x01 << 10) | (0x01 << 12) | (0x01 << 14)
	unsigned int GPIOZ_OTYPER_RESET;//~((0x01 << 5) | (0x01 << 6) | (0x01 << 7))
	unsigned int GPIOZ_OSPEEDR_RESET;//~((0x03 << 10) | (0x03 << 12) | (0x03 << 14))
	unsigned int GPIOZ_ODR_RESET;//~((0x01 << 5) | (0x01 << 6) | (0x01 << 7))
	unsigned int GPIOZ_ODR_SET;//(0x01 << 5) | (0x01 << 6) | (0x01 << 7)

	//GPIOE
	unsigned int GPIOE_MODER_RESET;//~((0x03 << 16) | (0x03 << 20))
	unsigned int GPIOE_MODER_SET;//(0x01 << 16) | (0x01 << 20)
	unsigned int GPIOE_OTYPER_RESET;//~((0x01 << 8) | (0x01 << 10))
	unsigned int GPIOE_OSPEEDR_RESET;//~((0x03 << 16) | (0x03 << 20))
	unsigned int GPIOE_ODR_RESET;//~((0x01 << 8) | (0x01 << 10))
	unsigned int GPIOE_ODR_SET;//(0x01 << 8) | (0x01 << 10)

	//GPIOF
	unsigned int GPIOF_MODER_RESET;//~(0x03 << 20)
	unsigned int GPIOF_MODER_SET;//(0x01 << 20)
	unsigned int GPIOF_OTYPER_RESET;//~(0x01 << 10)
	unsigned int GPIOF_OSPEEDR_RESET;//~(0x03 << 20)
	unsigned int GPIOF_ODR_RESET;//~(0x01 << 10)
	unsigned int GPIOF_ODR_SET;//(0x01 << 10)
	
};

#endif